﻿/*
------------------------------
    Rodeo Game Engine
    Rodeo Scene Module
    Viewport.h - header file
    Copyright(c) Marcin Goryca
------------------------------
*/
#ifndef RODEO_SCENE_VIEWPORT_H_
#define RODEO_SCENE_VIEWPORT_H_

#ifndef RODEO_RENDERER_GL_GLRENDERER_H_
#include "renderer\gl\glrenderer.h"
#endif   //RODEO_RENDERER_GLRENDERER_H_

namespace rodeoscene
{
class Viewport
{
public:
    Viewport(){}
    ~Viewport(){}

    // Sets viewport to width and height \n
    // Parameter x, y - starting points
    // Parameter w, h - width, height respectively
    // Parameter GLViewportType - RODEO_ORTHOGONAL, RODEO_PERSPECTIVE
    void set(int x, int y, int w, int h, rodeorenderer::GLViewportType vt);
    //virtual void update();
    //virtual void draw();

    // Starts Viewport 
    void begin();

    // Ends Viewport 
    void end();
};
}    //end of rodeoscene namespace
#endif    //RODEO_SCENE_VIEWPORT_H_